package com.smartstate.dataManagement.mqtt.common;


import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
public class GlobalMqttParam {
    //连接mqtt服务器ip地址
    @Value("${mqtt.broker}")
    public  String broker;
    //连接mqtt服务器账号
    @Value("${mqtt.userName}")
    public  String userName;
    //连接mqtt服务器密码
    @Value("${mqtt.passWord}")
    public  String passWord;
    //订阅topic
    @Value("${mqtt.subTopic1}")
    public  String subTopic1;
    //客户端id
    @Value("${mqtt.subClientId1}")
    public  String subClientId1;
    //存活时间
    @Value("${mqtt.keepalive}")
    public  int keepalive;
    //超时时间
    @Value("${mqtt.timeout}")
    public  int timeout;


}
